package com.javasm.adminapi.module.aftersalesbase.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.javasm.adminapi.module.product.entity.TSpu;
import com.javasm.adminapi.module.webuser.entity.WebUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (B2cReturnMsg)表实体类
 *
 * @author makejava
 * @since 2025-10-17 15:21:24
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class B2cReturnMsg extends Model<B2cReturnMsg> {
//个人与商家退换货管理表
    @TableId(type = IdType.AUTO)
    private Integer msgId;
//退换货单号（唯一，格式：RH+时间戳+随机数）
    private String msgOrderNo;
//关联原订单ID（外键关联订单表）
    private String msgOriginalOrderId;
//申请人ID（外键关联用户表）
    private Long msgUserId;
//类型：1=退货，2=换货
    private Integer msgType;
//原因类型：1=质量问题，2=尺寸不符，3=七天无理由，4=其它
    private Integer msgReasonType;
//详细原因描述
    private String msgReasonDetail;
//状态（核心字段）：0=待审核，1=审核通过，2=审核驳回，3=待寄回，4=已寄回，5=处理中，6=已完成，7=已取消
    private Integer msgStatus;
//申请时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date msgCreateTime;
//最后更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date msgUpdateTime;
//逻辑删除：0=未删除，1=已删除
    private Integer msgIsDeleted;

    private Long msgAppId;

    private String msgUsername;

    private String msgAppName;

    private String msgOrderCode;

    private String msgTspuCode;

    @TableField(exist = false)
    private WebUser webUser;
    @TableField(exist = false)
    private OmOrder omOrder;
//    @TableField(exist = false)
//    private OmOrderGoods omOrderGoods;
    @TableField(exist = false)
    private TSpu tSpu;
    @TableField(exist = false)
    private TSpu tsSpu;

    @TableField(exist = false)
    private Review review;
}
